import { request } from '@umijs/max';

export async function getUserLogPage(
  data: {
    // query
    /** 当前的页码 */
    page?: number;
    /** 页面的容量 */
    size?: number;
  },
  options?: { [key: string]: any },
) {
  return request<{
    code?: number;
    msg?: string;
    data?: Record<string, any>;
  }>('/extra-server/api/v1/user_log/page', {
    method: 'post',
    data,
    ...(options || {}),
  });
}
